package com.server.liad.api.file.remote;

import com.server.model.all.file.vo.UpLoadMainAndThumbnailImageVo;
import com.server.model.all.constant.service.ServiceNameConstant;
import com.server.common.code.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(contextId = "remoteFileService",value = ServiceNameConstant.LIAD_FILE)
public interface RemoteFileService {

    /**
     * 登录
     * @author LXC
     * @date 2022/5/5 16:45
     */
    @PostMapping(value = "/fileUpLoad/private/upLoadMainAndThumbnailImage", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result<UpLoadMainAndThumbnailImageVo> upLoadMainAndThumbnailImage(@RequestPart("file") MultipartFile multipartFile);

}
